<?php echo $this->fetch('header.html'); ?>
<div> 
<?php echo $this->fetch('tgyuan/nav.html'); ?>
<?php $this->assign("sclist",M("site_city")->siteList()); ?>
 <table class='table table-bordered' width='100%'>
  <tr>
   <td>id</td>
   <td>名称</td>
   
   <td>状态</td>
  
 
   <td>电话</td>
   <td>昵称</td>
   
   <td>金额</td>
<td>操作</td>
  </tr>
 <?php $_from = $this->_var['data']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
<tr>
   <td><?php echo $this->_var['c']['id']; ?></td>
   <td><?php echo $this->_var['c']['title']; ?></td>
   
   <td><?php if ($this->_var['c']['status'] == 2): ?>开业<?php else: ?>关闭<?php endif; ?></td>
   
 
   <td><?php echo $this->_var['c']['telephone']; ?></td>
   <td><?php echo $this->_var['c']['nickname']; ?></td>
   
   <td><?php echo $this->_var['c']['money']; ?></td>
<td><a href="<?php echo $this->_var['appadmin']; ?>?m=tgyuan&a=add&id=<?php echo $this->_var['c']['id']; ?>">编辑</a> 
 
<a href="<?php echo $this->_var['appadmin']; ?>?m=tgyuan_admin&shopid=<?php echo $this->_var['c']['id']; ?>">管理员</a>
<a href="<?php echo $this->_var['appadmin']; ?>?m=tgyuan_area&tgyid=<?php echo $this->_var['c']['id']; ?>">楼栋授权</a>
<a href="javascript:;" class="delete" url="<?php echo $this->_var['appadmin']; ?>?m=tgyuan&a=delete&id=<?php echo $this->_var['c']['id']; ?>">删除</a></td>
  </tr>
   <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
 </table>
<div><?php echo $this->_var['pagelist']; ?></div>
</div> 
<?php echo $this->fetch('footer.html'); ?>